home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / _exit.man next >
Encoding:
Text File  |  1990-05-04  |  1.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4. _EXIT                 C Library Procedures                  _EXIT
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      _exit - terminate a process
  10.  
  11. SSYYNNOOPPSSIISS
  12.      __eexxiitt((ssttaattuuss))
  13.      iinntt ssttaattuuss;;
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.      __e_x_i_t terminates a process with the following consequences:
  17.  
  18.      All of the descriptors open in the calling process are
  19.      closed.  This may entail delays, for example, waiting for
  20.      output to drain; a process in this state may not be killed,
  21.      as it is already dying.
  22.  
  23.      If the parent process of the calling process is executing a
  24.      _w_a_i_t or is interested in the SIGCHLD signal, then it is
  25.      notified of the calling process's termination and the low-
  26.      order eight bits of _s_t_a_t_u_s are made available to it; see
  27.      _w_a_i_t(2).
  28.  
  29.      The parent process ID of all of the calling process's exist-
  30.      ing child processes are also set to 1.  This means that the
  31.      initialization process (see _i_n_t_r_o(2)) inherits each of these
  32.      processes as well.  Any stopped children are restarted with
  33.      a hangup signal (SIGHUP).
  34.  
  35.      Most C programs call the library routine _e_x_i_t(3), which per-
  36.      forms cleanup actions in the standard I/O library before
  37.      calling __e_x_i_t.
  38.  
  39. RREETTUURRNN VVAALLUUEE
  40.      This call never returns.
  41.  
  42. SSEEEE AALLSSOO
  43.      fork(2), sigvec(2), wait(2), exit(3)
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 22, 1986                          1
  64.  
  65.  
  66.  
  67.